package com.jiang.annotation.aop.cacheable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cacheable")
public class CacheableController {

    @Autowired
    private CacheableService cacheableService;

    @GetMapping("test1")
    public String test1(){
        return cacheableService.getData();
    }
}
